#include <iostream>

#include "MainMenu.h"

using std::cout;
using std::endl;

MainMenu::MainMenu(): SelectionMenu("Main Menu", "Exit")
{
	addSelection("Browse");
	addSelection("Search");
	addSelection("Check Out");
	addSelection("Restock");
	addSelection("Check Transaction");
}

void MainMenu::performAction(Stock* companyStock, Cart* theCart)
{
	int userSelection;

	cout << "Welcome!" << endl;
	cout << endl;

	do {
		displayInfoBar();
		displayContent();
		cout << endl;

		userSelection = getSelectionFromUser();
		cout << endl;

		switch(userSelection)
		{
		case 1:

			break;
		case 2:

			break;
		case 3:

			break;
		case 4:

			break;
		case 5:

			break;
		case 0:
			break;
		}
	} while (userSelection != 0);
}